package controller;

import java.io.FileWriter;
import java.io.Writer;

import javax.xml.bind.JAXB;

import model.CardDeck;

/**
 * example for Save routine in JAXB
 * @author jens
 *
 */
public class SaveCard {

	private static final String fileName = "";
	
	public SaveCard(){
	 
		CardDeck cd = new CardDeck();
	 
		//TODO: hier das Carddeck füllen
		
	    Writer fileWriter;
		try {
			fileWriter = new FileWriter(fileName);

	    JAXB.marshal(cd, fileWriter);
	    fileWriter.close();
	    } catch(Exception e){}
	}
}